<!-- 消费记录 -->
<template>
    <div class="page-box h100 display-flex czbj">
        <div>
            <dxtable :headBtn="headBtn" :formJson="formJson" :dataJson="dataJson" :portUrl="portUrl" :qx="qx" ref="databale"></dxtable>
        </div>
    </div>
</template>
<script lang='ts' setup>
import { rowDark } from "naive-ui/es/legacy-grid/styles";
import dxtable from "../../components/util/dxtable.vue";
import sort from "../../components/util/sort.vue";
import { dxget, dxpost, qurl, hf } from "../../util/index";
import { h, ref, reactive } from "vue";
const props = defineProps({
    uid: { type: Number },
});
const cz = qurl()

let headBtn = [];
const zdList = ref()
const databale = ref();
const initeer = () => {
    databale.value.initDataExpose();
};
const emit = defineEmits(["callBack"]);
// 弹窗公用该列表
let dataJson = reactive([
    {
        title: "消费名称",
        key: "label",
        search: true, // 是否在搜索栏展示
        width:200
    },
    {
        title: "消费金额",
        key: "value",
    },
    {
        title: "消费时间",
        key: "addTime",
    },
]);
let portUrl = "chatgpt/gptxiaofeijl?uid="+props.uid;
const qx = {
    DeletePermissionID: "chatGPTusersListdel", //删除
    EditPermissionIdentifier: "chatGPTusersListbja", // 编辑
    NewPermissionIdentifier: "chatGPTusersListxza", // 新建
    ViewPermissionID: "chatGPTusersListck", // 查看
};


let formJson = reactive([
    {
        title: "助理名称",
        key: "label",
        type:"input",
        required: true, 
    },
    {
        title: "按钮名称",
        key: "buttonName",
        type:"input",
       
        required: true, 
    },
    {
        title: "简介",
        key: "synopsis",
        type:"textarea",
        required: true, 
    },
])



</script>
  
  
  